package fr.afcepf.atod.framework.properties;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class PropertiesManager {


	private static Logger m_log = Logger.getLogger(PropertiesManager.class);

	public PropertiesManager() {
	}

	public static Properties loadPropertiesFile() {
		InputStream is = Thread.currentThread().getContextClassLoader()
				.getResourceAsStream("rubberProperties.properties");
		Properties prop = new Properties();
		try {
			prop.load(is);
			m_log.info("Fichier de properties chargé");
			m_log.debug(prop);
			is.close();
		} catch (IOException e) {
			m_log.error(e.getMessage());
		} 
		return prop;
	}
	
}
